toPositiveInt

@SinceKotoolsTypes(version = "1.1")
fun Int.toPositiveInt(): Result<PositiveInt>

Returns this integer as an encapsulated PositiveInt, or returns an encapsulated IllegalArgumentException if this integer is strictly negative.